package com.hanson.mapper;

import com.hanson.entity.GoodsTypeMappingBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsTypeMappingBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByGoodsId(@Param("goodsId") Integer goodsId);

    int insert(GoodsTypeMappingBean record);

    GoodsTypeMappingBean selectByPrimaryKey(Integer id);

    List<GoodsTypeMappingBean> selectByGoodsId(@Param("goodsId") Integer goodsId);

    List<GoodsTypeMappingBean> selectByTypeId(@Param("typeId") Integer typeId);

    List<GoodsTypeMappingBean> selectAll();

    int updateByPrimaryKey(GoodsTypeMappingBean record);
}